/*
 * semdestroy.cpp
 *
 *  Created on: Jul 14, 2013
 *      Author: m
 */

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "NewSemaphore.h"

using namespace ipc;

int main ( void )
{
    char mostrar[10240];
    Semaphore::destroy( "/tmp/mysem", 'a' );

    sprintf( mostrar,
            "SEMDESTROY: "
            "Semaphore destroyed.\n" );
    write( fileno(stdout), mostrar, strlen(mostrar) );

    return 0;
}
